public class Dog {
    public String name;
    public int age;

    //属性
    public void bark(){
        System.out.println(name + "汪汪叫！！！");
    }
    //行为
    public void sleep(){
        System.out.println(name + "睡觉觉！！！");
    }
}
